import instance from "./axios";
import Qs from 'qs'

//file1-file7接口
export const getStatus2 = (data) =>{
    return instance({
        url:"/api/file/getStatus2",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

export const getStatus3 = (data) =>{
    return instance({
        url:"/api/file/getStatus3",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

export const getStatus4 = (data) =>{
    return instance({
        url:"/api/file/getStatus4",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

export const getStatus5 = (data) =>{
    return instance({
        url:"/api/file/getStatus5",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

export const getStatus6 = (data) =>{
    return instance({
        url:"/api/file/getStatus6",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

export const getStatus7 = (data) =>{
    return instance({
        url:"/api/file/getStatus7",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//文件草稿
export const getformworkList = (data) =>{
    return instance({
        url:"/api/formwork/getformworkList",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//文件草稿添加
export const addFormwork = (data) =>{
    return instance({
        url:"/file/formwork/addFormwork",
        data:data,
        method:'post',
    })
}
//文件草稿删除
export const deleteFormwork = (data) =>{
    return instance({
        url:"/api/formwork/deleteFormwork",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//登陆
export const login = (data) =>{
    return instance({
        url:"/api/system/login",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//验证码
export const putCode = (data) =>{
    return instance({
        url:"/api/admin/putCode",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//验证码登陆
export const loginBycode = (data) =>{
    return instance({
        url:"/api/admin/loginBycode",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

//个人注册
export const addAdmin = (data) =>{
    return instance({
        url:"/api/admin/addAdmin",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

//企业注册
export const registerAdmin = (data) =>{
    return instance({
        url:"/api/admin/registerAdmin",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

//查询存档文件
export const getfile = (data) =>{
    return instance({
        url:"/api/archives/getfile",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//根据id获取文件信息
export const getFileByid = (data) =>{
    return instance({
        url:"/api/file/getFileByid",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

//获取签署信息

export const getflowList = (data) =>{
    return instance({
        url:"/api/file/getflowList",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

//获取抄送信息
export const getsendList = (data) =>{
    return instance({
        url:"/api/send/getsendList",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

//获取印章需求
export const getnowflow = (data) =>{
    return instance({
        url:"/api/flow/getnowflow",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//获取阅览记录

export const getwatchList = (data) =>{
    return instance({
        url:"/api/watch/getwatchList",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}

//驳回文件 /file/recallFile
export const recallFile = (data) =>{
    return instance({
        url:"/api/file/recallFile",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//获取驳回信息 /file/getrecall
export const getrecall = (data) =>{
    return instance({
        url:"/api/file/getrecall",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//获取已驳回列表 /file/getrecallList
export const getrecallList = (data) =>{
    return instance({
        url:"/api/file/getrecallList",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//真伪查询
export const getfilebynumber = (data) =>{
    return instance({
        url:"/api/file/getfilebynumber",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//获取信息
export const getadmin = (data) =>{
    return instance({
        url:"/api/admin/getadmin",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}
//获取拥有者被分配印章
export const getown = (data) =>{
    return instance({
        url:"/api/seal/getown",
        data:data,
        method:'post',
        transformRequest:function(data){
            return Qs.stringify(data)
        }
    })
}